package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.ServiceRoleMapper;
import org.linlinjava.litemall.db.domain.ServiceRole;
import org.linlinjava.litemall.db.domain.ServiceRoleExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description:
 * @program: mall
 * @author: youvy
 * @create: 2019-12-17 14:49
 **/
@Service
public class ServiceRoleService {
	@Resource
	private ServiceRoleMapper serviceRoleMapper;

	public List<ServiceRole> listRole(Integer mtype){
		ServiceRoleExample example = new ServiceRoleExample();
		example.or().andMTypeEqualTo(mtype);
		return serviceRoleMapper.selectByExample(example);
	}

}
